package com.example.aaaaa;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

public class MyrRvAdapter extends RecyclerView.Adapter<MyrRvAdapter.VH>{

    public MyrRvAdapter() {
        super();
    }

    @NonNull
    @Override
    public VH onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new VH(LayoutInflater.from(parent.getContext()).inflate(R.layout.rv,parent,false));
    }

    @Override
    public void onBindViewHolder(@NonNull VH holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 8;
    }



    static class VH extends RecyclerView.ViewHolder{
        TextView textView;
        public VH(@NonNull View itemView) {
            super(itemView);
            textView=itemView.findViewById(R.id.textView);
        }

    }
}
